From 363e83d55ccc5fcabbd23f1b5fc21ed5137340b9 Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Wed, 16 Feb 2005 19:10:49 +0000 Subject: [PATCH] invisiblize google (and other 'internal' types) in help --- gpsbabel/google.c | 2 +- gpsbabel/vecs.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gpsbabel/google.c b/gpsbabel/google.c index 22e17478c..8b99ff2b8 100644 --- a/gpsbabel/google.c +++ b/gpsbabel/google.c @@ -167,7 +167,7 @@ google_rd_deinit(void) } ff_vecs_t google_vecs = { - ff_type_file, + ff_type_internal, { ff_cap_none, ff_cap_read, ff_cap_none}, google_rd_init, NULL, diff --git a/gpsbabel/vecs.c b/gpsbabel/vecs.c index 662cbba01..83dbab313 100644 --- a/gpsbabel/vecs.c +++ b/gpsbabel/vecs.c @@ -556,7 +556,7 @@ disp_vecs(void) /* Normal vecs are easy; populate the first part of the array. */ for (vec = vec_list; vec->vec; vec++, i++) { - svp[i] = vec; + svp[i] = vec; } /* Walk the style list, parse the entries, dummy up a "normal" vec */ for (svec = style_list; svec->name; svec++, i++) { @@ -571,7 +571,8 @@ disp_vecs(void) qsort(svp, vc, sizeof(*svp), alpha); for (i=0;iname, svp[i]->desc); + if ( svp[i]->vec->type != ff_type_internal ) + printf(VEC_FMT, svp[i]->name, svp[i]->desc); for (ap = svp[i]->vec->args; ap && ap->argstring; ap++) { if ( !(ap->argtype & ARGTYPE_HIDDEN)) printf(" %-18.18s %-.50s %s\n", -- 2.30.2